#include "MainWindow.h"

#include "ui_MainWindow.h"

MainWindow::MainWindow(): QMainWindow() {
  ui = new Ui::MainWindow();
  ui->setupUi(this);
  connect(ui->glWidget, SIGNAL(drawObjects()), this, SLOT(drawObjects()));

  scene = loja2Scene();
}

MainWindow::~MainWindow() {
  delete ui;
  delete scene;
}

void MainWindow::drawObjects() {
  scene->draw();
}
